#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

void test(int (*p)[4], int a, int b)
{
	int i = 0, j = 0;
	for (i = 0; i < a; i++)
	{
		for (j = 0; j < b; j++)
		{
			//printf("%d ", arr[i][j]);
			printf("%d ", *(*(p + i) + j));
		}
		printf("\n");
	}
}

int main()
{
	int arr[3][4] = { {1,2,3,4},{4,5,6,7},{7,8,9,10} };
	test(arr, 3, 4);
	return 0;
}